<?php echo $header;echo $sidebar ?>		

		<style>
			a.edit_icon {
		    background: url("<?php echo $this->config->base_url(); ?>assets/admin/admin_images/icons/edit.gif") no-repeat scroll left top transparent;
		    display: inline-block;
		    height: 16px;
		    width: 16px;
			}
			a.delete2_icon {
   	 			background: url("<?php echo $this->config->base_url(); ?>assets/admin/images/icon/delete.png") no-repeat scroll left top transparent;
    			display: inline-block;
    			height: 16px;
    			width: 16px;
			}
			ul.yiiPager {
			    border: 0 none;
			    display: inline;
			    font-size: 11px;
			    line-height: 100%;
			    margin: 0;
			    padding: 0;
			}
			
			ul.yiiPager a:link, ul.yiiPager a:visited {
			    border: 1px solid #9AAFE5;
			    color: #0E509E;
			    font-weight: bold;
			    padding: 1px 6px;
			    text-decoration: none;
			}
		</style>
		<div class="span10 content">

			<?php echo $hugemenu ?>

			<h1>Email Marketing</h1>

			<?php if($this->session->flashdata('message')) {?>
			<div class="alert alert-success">
				<?php echo $this->session->flashdata('message') ?>
			</div>
			<br />
			<?php  }?>
			

			<div>
			
				<!-- Nav tabs -->
				<ul class="nav nav-tabs">
				  <li><a href="/index.php/email_marketing/template">Templates</a></li>
				  <li><a href="/index.php/email_marketing/settings">Settings</a></li>
				  <li><a href="/index.php/email_marketing/mass_campaigns">Mass Campaigns</a></li>
				  <li><a href="/index.php/email_marketing/sent_mail">Sent Mail</a></li>
				  <li><a href="/index.php/email_marketing/hot_leads">Hot Leads</a></li>
				  <li><a href="/index.php/email_marketing/alerts">Alerts</a></li>
				  <li><a href="/index.php/email_marketing/subscription">Subscriptions</a></li>
				  <li><a href="/index.php/email_marketing/mailing_list">Mailing List</a></li>
				  <li><a href="/index.php/email_marketing/filters">Filters</a></li>
				  <li class="active"><a href="#">Group</a></li>
				</ul>
				
				<!-- Tab panes -->
				<div class="tab-content">
				  
				  <a href="emailgroup/add">Add EmailGroup</a>
				  
				  <table class="table table-striped table-bordered table-hover table-primary">

					<thead>
						<tr>
							<th scope="col">ID</th>	
						      <th scope="col">Group Name</th>
						      <th scope="col">Status</th>
						      <th scope="col">Edit</th>
						      <th scope="col">Delete</th>
						</tr>

					</thead>

					<tbody>
            		<?php foreach($records->result() as $row) :?>
				    <tr>
					  <td><?php echo $row->group_id;?></td>
				      <td><?php echo $row->group_name;?></td>
					   <td><?php echo $row->status;?></td>
				      <td><a href="<?php echo 'emailgroup/add?group_id='.$row->group_id;?>">Edit</a></td>
					  <td><a href="<?php echo 'emailgroup/delete?id='.$row->group_id;?>" onclick="return confirm('Are you sure to delete this record?')">Delete</a></td>
				    </tr>
				    <?php endforeach;?>
					</tbody>
				</table>
				</div>
			</div>
		</div><!--/content-->
<?php echo $footer ?>